﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteNew.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ASPNETMVCApplication.ActionServiceReference.OrderDetail>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <table>
        <tr>
            <th></th>
            <th>
                CategoryId
            </th>
            <th>
                Discount
            </th>
            <th>
                OrderDetailId
            </th>
            <th>
                OrderId
            </th>
            <th>
                ProductId
            </th>
            <th>
                ProductName
            </th>
            <th>
                Quantity
            </th>
            <th>
                Status
            </th>
            <th>
                UnitPrice
            </th>
            <th>
                Version
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%: item.CategoryId %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Discount) %>
            </td>
            <td>
                <%: item.OrderDetailId %>
            </td>
            <td>
                <%: item.OrderId %>
            </td>
            <td>
                <%: item.ProductId %>
            </td>
            <td>
                <%: item.ProductName %>
            </td>
            <td>
                <%: item.Quantity %>
            </td>
            <td>
                <%: item.Status %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.UnitPrice) %>
            </td>
            <td>
                <%: item.Version %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

